<?php
/**
 * Created by PhpStorm.
 * User: Kiriti
 * Date: 2016/4/1 0001
 * Time: 14:57
 */

namespace app\controllers;

use yii\web\Controller;
use Yii;


class LoginController extends Controller{
	
    public $layout="main2";
    public function actionShow(){

        if(!empty($_COOKIE['user_id'])){
            $user_id = $_COOKIE['user_id'];
            $user = UsercenterController::getUserInfo($user_id);

            $view = Yii::$app->view;
            $view->params['title'] = "个人资料";
            PrlikeController::setView($user);

        }
    	return $this->render('login.php');

    }
    
}